package com.lwy.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lwy.entity.BookNove;
import com.lwy.entity.BookUser;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

//小说表dao接口
@Mapper
public interface BookNoveMapper extends BaseMapper<BookNove> {
    //    小说总数
    public Integer count();
    //回填
    public BookNove findById(Integer id);
    //查询章节
    public List<BookNove> findClass(@Param("title")String title,@Param("category") Integer category,@Param("serialize") Integer serialize,@Param("word") String word,@Param("hits") String hits,@Param("create_time") String create_time);

    public List<BookNove> findName(@Param("title")String title);
}